
<%-- 
    Document   : contactDetail1
    Created on : Jun 8, 2012, 12:03:36 PM
    Author     : VANANH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/employee.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/jquery.rateit.js"></script>

        <link rel="stylesheet" type="text/css" href="../css/rateit.css">

    </head>
    <script type="text/javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){
            $j(".rateit").bind('rated', function (event, value) { 
                var pk100 = $j(this).attr('lang');
               
                star_value = value;
                       
                $j.post("starofsupplier.jsp?action=favourite&flag=starcustomer&vn224="+star_value+'&pv220='+pk100,function(){

                });
            });
        });
    </script>
    <style>

        .rateit-reset{
            display: none !important;
        }
        .greyRow{
            background: #E0EFFC;
        }
        .greyRow1{
            background: #E0EFFC;
        }
    </style>
    <body>
        <f:view>
            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
            <a4j:form >
                <div class="content_detail">
                    <div class="list_item_user">
                        <div class="item_content" style="display: block">
                            <div class="infomation_form"> 
                                <div class="card_add" >
                                    <h:outputLink  value="editserviceDetail.jsp?action=add&id=#{v300Controller.fk100}&page=#{serviceController.pagereload}&itemid=N100&height=300px&width=500px" styleClass="fancybox">
                                        <img src="../images/add_tab.png" alt="add" title="add" /> <h:outputText value="Dịch vụ"/>
                                    </h:outputLink>


                                </div>

                                <div class="item_work_content" style="width:890px;margin-left: 14px;">
                                    <rich:dataTable  reRender="sc2" value="#{v300Controller.listV300All}" var="item"                            
                                                     rowClasses="greyRow, whiteRow"
                                                     width="800px" columnClasses=",columns,columns,columns" rowKeyVar="row"
                                                     id="table" styleClass="machinePosDataTable">
                                        <rich:column style="width:20px;">
                                            <f:facet name="header">
                                                <h:outputText value="STT" />
                                            </f:facet>

                                            <div style="width:20px;text-align: center">
                                                <h:outputText value="#{row+1}" />    
                                            </div>
                                        </rich:column>
                                        <rich:column style="width:200px;">
                                            <f:facet name="header">
                                                <h:outputText value="Tên dịch vụ" />
                                            </f:facet>

                                            <div style="width:200px;">
                                                <h:outputText value="#{item.vv301} " />    
                                            </div>
                                        </rich:column>
                                        <rich:column style="width:100px;">
                                            <f:facet name="header">
                                                <h:outputText  value="Loại dịch vụ" />
                                            </f:facet>
                                            <div style="">
                                                <h:outputText value="#{item.vv201}" />    
                                            </div>
                                        </rich:column>
                                        <rich:column style="width:65px;">
                                            <f:facet name="header">
                                                <h:outputText  value="Giá dịch vụ" />
                                            </f:facet>
                                            <div style="width:65px;text-align: right;">
                                                <h:outputText   value="#{item.vn302Str}" />

                                            </div>
                                        </rich:column>
                                        <rich:column style="width:32px;">
                                            <f:facet name="header">
                                                <h:outputText  value="Tiền tệ" />
                                            </f:facet>
                                            <div style="width:32px;text-align: center;">
                                                <h:panelGroup rendered="#{item.vv303==1}">  <h:outputText   value="VNĐ" /></h:panelGroup>
                                                <h:panelGroup rendered="#{item.vv303==2}">  <h:outputText   value="USD" /></h:panelGroup>
                                                <h:panelGroup rendered="#{item.vv303==3}">  <h:outputText   value="EUR" /></h:panelGroup>

                                            </div>
                                        </rich:column>
                                        <rich:column style="width:150px;">
                                            <f:facet name="header">
                                                <h:outputText value="Ghi chú" />
                                            </f:facet>
                                            <div style="width:150px;text-align: left;">
                                                <h:outputText   value="#{item.vv304}" />

                                            </div>
                                        </rich:column>


                                        <rich:column style="width:150px;">
                                            <f:facet name="header">
                                                <h:outputText  value="Diễn giải" />
                                            </f:facet>
                                            <div style="width:150px;text-align: left;">
                                                <h:outputText   value="#{item.vv305}" />

                                            </div>
                                        </rich:column>

                                        <rich:column style="width:60px;text-align:center;">
                                            <f:facet name="header">
                                                <h:outputText styleClass="tnn" value="Action" />
                                            </f:facet>
                                            <div style="width:60px;">
                                                <div style="width:20px;float: left;">
                                                    <h:outputLink rendered="#{loginSession.right.SLE_LST_ADD}" value="CountryandCity.jsp?action=countrycity&fv200=#{item.fv200}&fk100=#{item.fk100}&price=#{item.vn302}&vv301=#{item.vv301}&vv304=#{item.vv304}&vv305=#{item.vv305}&height=5px&width=600px" styleClass="fancybox add_new" id="fancybox1">
                                                        <img src="../images/work.png" alt="Add work" title="Thêm quốc gia"/>
                                                    </h:outputLink>
                                                </div>
                                                <div style="width:20px;float: left;">
                                                    <h:outputLink rendered="#{loginSession.right.SUP_SEV_MOD}"  value="editserviceDetail.jsp?action=edit&fk100=#{item.fk100}&pv300=#{item.pv300}&page=#{serviceController.pagereload}&height=282px&width=345px" styleClass="fancybox add_new" id="fancybox3">
                                                        <img src="../images/edit.png" alt="edit" title="edit"/>
                                                    </h:outputLink>

                                                </div>


                                                <div style="width:20px; float: right;">
                                                    <h:outputLink rendered="#{loginSession.right.SUP_SEV_DEL}" value="delete.jsp?action=delete&id=#{item.pv300}&pn100C=#{item.fk100}&flag=V300&height=282px&width=345px" styleClass="fancybox add_new" id="fancybox4">
                                                        <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                    </h:outputLink>

                                                </div>
                                            </div>
                                        </rich:column>

                                    </rich:dataTable> 


                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </a4j:form>
        </f:view>
    </body>
</html>
